<?php

namespace App\Transformers\Frontend;

use App\Models\Teacher;
use League\Fractal\TransformerAbstract;

class TeacherTransformer extends TransformerAbstract
{

    protected $availableIncludes = [];

    protected $hidden = [];

    public function transform(Teacher $model)
    {
        $model->makeHidden($this->hidden);
        return $model->attributesToArray();
    }
}